/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package se.hed.creature;

/**
 *
 * @author fredrik
 */
public class PrintLogger implements Logger {
    String prefix = "";

    public PrintLogger(String prefix) {
        this.prefix = prefix;
    }

    public PrintLogger() {
    }

    public void setPrefix (String str) {
        prefix = str;
    }

    public void log(String str) {
        System.out.println((prefix.length() > 0?prefix + ": ":"") + str);
    }
}
